

$(function(){

    $('.code-btn').click(function(){
        location.href = 'http://'+ThinkPHP['HTTP_HOST']+'/Code/add';
    })

});